powered by
Extract/Replace a Style Class or Object from PaletteOfStyles
# S4 method for PaletteOfStyles [(x, i, j, ...) <- value# S4 method for PaletteOfStyles,ANY,ANY,ANY [(x, i, j, ..., drop = FALSE)# S4 method for PaletteOfStyles [[(x, i, j, ..., exact = TRUE)
# S4 method for PaletteOfStyles,ANY,ANY,ANY [(x, i, j, ..., drop = FALSE)
# S4 method for PaletteOfStyles [[(x, i, j, ..., exact = TRUE)
a Style
Style
ClassRepresentation object or
ClassRepresentation
Style object for [[, and a list of the same for
[[
[
a PaletteOfStyles object
PaletteOfStyles
numeric, or character corresponding to a valid style format
format
numeric, or character corresponding to a valid style brightness
brightness
pass a numeric or character corresponding to a valid color.mode
color.mode
a list of Style class or Style objects
TRUE or FALSE, whether to drop dimensions, defaults to FALSE, which is different than generic
passed on to generic
diffPrint for explanations of format, brightness, and color.mode
diffPrint
pal <- PaletteOfStyles() pal[["ansi256", "light", "rgb"]] pal["ansi256", "light", ] pal["ansi256", "light", "rgb"] <- list(StyleAnsi8NeutralRgb())
Run the code above in your browser using DataLab